#include "stdafx.h"
#include "wf_setsnapmode.h"



/**
 * Constructor.
 *
 * @param snapMode The new snap mode used from now on.
 */
WF_SetSnapMode::WF_SetSnapMode(PF_Container& container,
        PF_GraphicView& graphicView,
        LX_Define::SnapMode snapMode)
        :PF_ActionInterface("Set Snap Mode", container, graphicView) {

    this->snapMode = snapMode;
}



void WF_SetSnapMode::trigger() {
    graphicView->setDefaultSnapMode(snapMode);
	
    finish();
}



void WF_SetSnapMode::init(int status) {
    PF_ActionInterface::init(status);
    trigger();
}

// EOF
